<script setup>
import {ref,onMounted} from "vue"
import axios from "axios"
import animeModel1 from "../../components/animeModel1.vue"

const blzhVideoUrl = ref("")
const fan1Url = ref("")
const fan2Url = ref("")
const fan3Url = ref("")
const fan4Url = ref("")
const fan5Url = ref("")
const fan6Url = ref("")
const fan7Url = ref("")
const fan8Url = ref("")
const fan9Url = ref("")
const fan10Url = ref("")
const fan11Url = ref("")
const fan12Url = ref("")

axios.get("/go1-api/anime/blzh").then(async res=>{
    // console.log(res.data[0].anime_msg[0].fan_player)
    blzhVideoUrl.value = await res.data[0].anime_msg[0].fan_player
    fan1Url.value = await res.data[0].anime_msg[0].fan_player
    fan2Url.value = await res.data[0].anime_msg[1].fan_player
    fan3Url.value = await res.data[0].anime_msg[2].fan_player
    fan4Url.value = await res.data[0].anime_msg[3].fan_player
    fan5Url.value = await res.data[0].anime_msg[4].fan_player
    fan6Url.value = await res.data[0].anime_msg[5].fan_player
    fan7Url.value = await res.data[0].anime_msg[6].fan_player
    fan8Url.value = await res.data[0].anime_msg[7].fan_player
    fan9Url.value = await res.data[0].anime_msg[8].fan_player
    fan10Url.value = await res.data[0].anime_msg[9].fan_player
    fan11Url.value = await res.data[0].anime_msg[10].fan_player
    fan12Url.value = await res.data[0].anime_msg[11].fan_player
}).catch(err=>console.log(err))

onMounted(()=>{
    document.title = "碧蓝之海 - 番剧|EvenSO"
})

</script>

<template>
    <div class="blzhVideoAll">
        <div class="dialogBoxColor"></div>
        <div class="blzhVideoMasterBox">
            <animeModel1 
                fan_fm=""
                fanName="blzh"
                :videoUrl="blzhVideoUrl"

                :fan1Url="fan1Url"
                :fan2Url="fan2Url"
                :fan3Url="fan3Url"
                :fan4Url="fan4Url"
                :fan5Url="fan5Url"
                :fan6Url="fan6Url"
                :fan7Url="fan7Url"
                :fan8Url="fan8Url"
                :fan9Url="fan9Url"
                :fan10Url="fan10Url"
                :fan11Url="fan11Url"
                :fan12Url="fan12Url"
            />
        </div>
    </div>
</template>

<style scoped>
.blzhVideoAll{
    position: absolute;
    left: 0;
    top: 0;
    width: 1855px;
    height: 100%;
}
.dialogBoxColor{
    width: 100%;
    height: 6%;
    background: linear-gradient(to right,rgb(2,80,160),rgb(155,221,255));
}
.blzhVideoMasterBox{
    width: 100%;
    height: 94%;
    /* background-color: red; */
}
</style>